package org.suk.dp.flyweight;

import java.text.MessageFormat;

/**
 * Description: <br/>
 * @version V1.0  2017/6/22 15:40  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class ConcreteWebsite extends Website {
    private String name = "";

    public ConcreteWebsite(String name) {
        this.name = name;
    }

    @Override
    public void use(User user) {
        System.out.println(MessageFormat.format("网站分类：{0} 用户：{1}",this.name,user.getName()));
    }
}
